//
//  TextFieldCell.m
//  Organic
//
//  Created by Mike on 1/9/15.
//  Copyright (c) 2015 Mike Amaral. All rights reserved.
//

#import "TextFieldCell.h"

@implementation TextFieldCell

- (instancetype)init {
    self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"IndentedCell"];
    
    if (!self) {
        return nil;
    }
    CGRect rect = [ UIScreen mainScreen ].applicationFrame;
    float width = rect.size.width;

    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.textField = [[UITextField alloc] initWithFrame:CGRectMake(width*0.05, 0, width*0.9, 30)];
    
    self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
    self.textField.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    self.textField.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.textField];
    self.backgroundColor = [UIColor clearColor];
    self.height = 30;
    
    return self;
}


@end

// 版权属于原作者
// http://code4app.com (cn) http://code4app.net (en)
// 发布代码于最专业的源码分享网站: Code4App.com 
